<template>
    <div>
        <header-footer :commonData="{$parent:$parent}">
            <div class="online_apply" v-cloak>
                <div class="crumb">
                    <ul>
                        <li class="color666 f_left">当前位置：</li>
                        <li>
                            <router-link class="color666 f_left" to="/home">首页></router-link>
                        </li>
                        <li class="color666 f_left">线下审核</li>
                    </ul>
                </div>
                <div class="border_content text_center company_apply_info">
                    <img src="/static/img/tzgtitle3.png" class="contTitleImg">
                    <h3 class="apply_title offline_check_title">线上报名流程已完成，下一步现场信息审核。</h3>
                    <div class="offline_check">
                        <p>现场审核注意事项：<br>
							 1.审核时间：{{checkData.b_year}}年{{checkData.b_month}}月{{checkData.b_day}}日 至  {{checkData.e_year}}年 {{checkData.e_month}}月{{checkData.e_day}}日<br>
                             2.审核地点：湖州市红丰一路7号建设培训考试办事大厅一楼。<br>
                             3.审核需要带的材料有：个人报名表（打印本人签字）、学历证明复印件（初中以上学历）{{checkData.physicalExamine}}。<br>
							 4.个人报名表需在本人签名处签写本人姓名，并由当事人携带以上材料到现场审核。
							</p>
                        <a class="offline_check_btn" @click="getApplyForm">下载报名表</a>
                    </div>
                </div>
            </div>
        </header-footer>
    </div>
</template>
<script>
    import headerFooter from '../../../components/cont_education/header_and_footer.vue'
    export default {
        name: "offline_check",
        data: function() {
            return {
                tradeNo: this.$route.params.tradeNo,
				checkData:{}
            }
        },
        mounted: function() {
			this.checkData=JSON.parse(localStorage.getItem("checkDate"));
		},
        methods: {
            getApplyForm: function() {
                var that=this;
                this.common.post(this.api.getPersonApplyForm, {
                    tradeNo: this.tradeNo
                }, function(res) {
                    if (!String.isEmptyOrNUll(res.resultMap)) {
                        localStorage.setItem("showCheckImg",1);
                        that.$message.success("报名表正在生成中！");
                        setTimeout(function(){
							window.open(res.resultMap);
                            that.common.toPage("/home/apply/apply_success/"+that.tradeNo);
						},2000);
                    }else{
                        that.$message.error("当前暂无报名表！");
                    }
                });
            }
        },
        components: {
            headerFooter
        }
    }
</script>

<style>

</style>
